<template>
  <div class="payment-page">
    <el-card class="payment-card">
      <h2 class="payment-title">挂号缴费</h2>
      <div class="order-info">
        <div><strong>就诊人：</strong>张三</div>
        <div><strong>科室：</strong>内科</div>
        <div><strong>医生：</strong>李医生</div>
        <div><strong>挂号金额：</strong><span class="amount">￥20.00</span></div>
      </div>
      <el-button type="primary" class="pay-btn" @click="pay">支付</el-button>
    </el-card>
  </div>
</template>

<script setup>
import { ElMessage } from 'element-plus'
import { useRouter } from 'vue-router'
const router = useRouter()
const pay = () => {
  ElMessage.success('支付成功！')
  setTimeout(() => {
    router.push({ path: '/yonghu/online-registration', query: { success: 1 } })
  }, 1000)
}
</script>

<style scoped>
.payment-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e6f0ff 0%, #f5f7fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-card {
  max-width: 370px;
  margin: 0 auto;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(22,93,255,0.13);
  padding: 40px 32px 36px 32px;
  background: #fff;
  border: 2.5px solid #e6f0ff;
  position: relative;
  overflow: hidden;
}
.payment-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: #165DFF;
  letter-spacing: 2px;
}
.order-info {
  font-size: 1.13rem;
  color: #333;
  margin-bottom: 36px;
  line-height: 2.1;
  background: #f5f7fa;
  border-radius: 12px;
  padding: 18px 16px 10px 16px;
  box-shadow: 0 2px 8px rgba(22,93,255,0.04);
}
.amount {
  color: #165DFF;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.pay-btn {
  width: 100%;
  height: 52px;
  font-size: 1.15rem;
  border-radius: 26px;
  background: linear-gradient(90deg, #165DFF 0%, #4facfe 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(22,93,255,0.13);
  transition: background 0.3s, box-shadow 0.3s;
}
.pay-btn:hover {
  background: linear-gradient(90deg, #4facfe 0%, #165DFF 100%);
  box-shadow: 0 8px 32px rgba(22,93,255,0.18);
}
</style> 